Hybris UX Api
GET Customer
GET (TMF-629)
This operation allows for the listing of Customer entities with operations that enable users to retrieve the customers with operation GET from the system and apply the transformations if required to maintain the standards with TMF.
URL
http://[localhost]:[port]/ecom-ux/v1/{businessId}/customer
Common Parameters
Base URI parameters and headers are common to all the resources as part of customer management Biz API, listed below with details.
for CR
Request for FIXED - URL
http://host:port/ecom-ux/v1/{businessId}/customer?identityNumber=0109840832&identityType=C
Request for MOBILE - URL
http://host:port/ecom-ux/v1/{businessId}/customer?phoneNumber=986291690
for JM
- http://[localhost]:[port]/ecom-ux/v1/JM/customer?characteristics.key=billingAccountNo&characteristics.value=245502600000
- http://[localhost]:[port]/ecom-ux/v1/JM/customer?characteristics.key=serviceNum&characteristics.value=8766161491
- http://[localhost]:[port]/ecom-ux/v1/JM/customer?characteristics.key=companyName&characteristics.value=TOJ
- http://[localhost]:[port]/ecom-ux/v1/JM/customer?characteristics.key=identityType,identityCode&characteristics.value=SS,115183116
for PA
Note: Alphabets should be upper case in queryParams
- http://[localhost]:[port]/ecom-ux/v1/PA/customer?characteristics.key=billingAccountNo&characteristics.value=131031390000
- http://[localhost]:[port]/ecom-ux/v1/PA/customer?characteristics.key=serviceNum&characteristics.value=9949507
- http://[localhost]:[port]/ecom-ux/v1/PA/customer?characteristics.key=companyName&characteristics.value=PAN
- http://[localhost]:[port]/ecom-ux/v1/PA/customer?characteristics.key=identityType,identityCode&characteristics.value=C,8-717-2045
for PR
http://[localhost]:[port]/ecom-ux/v1/PR/customer?characteristics.value=9090909090&characteristics.key=PN
Base URI Parameter
Name | Type | M/O | Description |
---|---|---|---|
businessId | string | M | Business unit identifier. Example: “JM”,“PA”,“PR”,“CR” |
Headers
name | value | description | required |
---|---|---|---|
X-Correlation-ID | string | This is a unique identifier for the current call chain that can be used to tie together log entries on multiple layers. Example: 644e1dd7-2a7f-18fb-b8ed-ed78c3F92c2b | O |
channeId | string | Channel to business: Expected Value: "ECOM" Note ChannelId default value:ECOM "PR" and "PA" : if channelId other than ECOM it will go to actual implementation is in development. "CR" and "JM": if channelId other than ECOM it will throw customized error 501 | M |
lob | String | Enum: PREPAID, POSTPAID,FIXED Note : Defalut value : FIXED but to hit CR MOBILE users it is mandatory to pass PREPAID or POSTPAID | M Not inscope for PA |
targetSystem | String | To identify the bss system Eg: csg, aria, matrixx | M Not inscope for CR, PA, JM |
Security Headers
name | value | description | required |
---|---|---|---|
client-id | string | Client Id value for Client Id Enforcement policy. Environment Specific Value. Eg:6f0ed16a7b494d76b2d60e05bc3b3332 | M |
client-secret | string | Client secret value for Client Id Enforcement policy. Environment Specific Value Eg: e4CD4D43449846aA9D8Cb9c43fAd324a | M |
Query Param
name | type | description | required |
---|---|---|---|
identityNumber | string | Customer identity document number like Cedula number Note: it is optional query param as per design.it is Mandatory query param only for CR-FIXED as per code and not in scope for other markets. | O |
identityType | string | Identifier Type, “C” or “PP” for Costa Rica C – Cedula PP- passport Note: it is optional query param as per design . it is Mandatory query param only for CR-FIXED as per code and not in scope for other markets. | O |
phoneNumber | String | Customer Mobile Number Note: Note: it is optional query param as per design. it is Mandatory query param for only CR-mobile as per code and not in scope for other markets | O |
characteristics.key | String | comma-separated key for JM & PA. For JM(Liberate and Cerillion) Possible characteristics.key types are serviceNum, firstName, lastName, companyName, billingAccountNo, identityCode & identityType. Eg - identityType,identityCode For PA Possible characteristics.key types are serviceNum, firstName, lastName, companyName, billingAccountNo, identityCode & identityType. Eg - identityType,identityCode For PR Market. LN = Location number, NA = Name (formate-LASTNAME, FIRSTNAME MIDDLE NAME. eg- "DHAARANI, GUNA SEKARAN"), PN = Phone number, AN = Account number, characteristics.key is named as key in sys layer. Key will displayed in error response when we miss this field. Example - For JM,PA - identityType,identityCode. For PR - AN, PN -Possible Identity types for Liberate JM are PP (passport), NI (National Id), OT (Other), SS (Driving L No), TR (TRN Number) -Possible Identity types for Liberate PA are C -Cedula, PP-Pasaporte, SS-Seguro Social, V-Cuenta Vieja | M/O |
characteristics.value | String | Comma-separated value in same sequence as key. Used in JM(Liberate and Cerillion) and PA. For PR Market. characteristics.value is named as keyType in sys layer. KeyType will displayed in error response when we miss this field. Example - For JM(Liberate and Cerillion) & PA - C,401-623-883,John,Morgan,22546783,Latinex. For PR - 7306179999, 8211990010034312. | M/O |
HTTP Status response is 200
Response Sample for CR Fixed.
[
{
"id": "1-2DWU2NH",
"name": "JORGE STEVEN GOÑI SEGURA",
"status": "Active",
"contactMedium": [
{
"mediumType": "Address",
"characteristic": {
"street1": "CALLE DEL COUNTRY",
"street2": "ESCAZU",
"stateOrProvince": "SAN JOSE",
"city": "ESCAZU"
}
},
{
"mediumType": "Email",
"characteristic": {
"phoneNumber": "test@lla.com",
"contactType": "email"
}
},
{
"mediumType": "Telephone",
"characteristic": {
"phoneNumber": "+50688777575",
"contactType": "home"
}
},
{
"mediumType": "Telephone",
"characteristic": {
"phoneNumber": "+50688777576",
"contactType": "mobile"
}
}
],
"characteristic": [
{
"name": "idProof",
"value": "01-4498-5920"
},
{
"name": "idProofType",
"value": "CEDULA FISICA"
},
{
"name": "addressId",
"value": "1-2F741ZW"
},
{
"name": "contactId",
"value": "1-2F741ZY"
},
{
"name": "settlementAccountId",
"value": "1-2F741ZW"
},
{
"name": "district",
"value": "PUNTARENAS"
},
{
"name": "customerType",
"value": "RESIDENCIAL"
}
]
}
]
HTTP Status response is 200
Response Sample for CR Existing Mobile Customer.
[
{
"id": "2331805",
"@type": "Control",
"characteristic": [
{
"name": "campaigne",
"value": "Pospago @1 CT Contrato"
}
]
}
]
HTTP Status response is 200
Response Sample for CR New Mobile Customer.
[
{
"id": "0",
"@type": "Cliente nuevo / No existe en base",
"characteristic": [
{
"name": "campaigne",
"value": "Cliente nuevo / No existe en base"
}
]
}
]
HTTP Status response is 200
Response Sample for PA.
[
{
"id": "32900018",
"name": "SUZSANN ZEPEDA",
"status": "D-Defecto",
"characteristic": [
{
"name": "system",
"value": "Liberate"
},
{
"name": "dateOfBirth",
"value": "1986-12-30T00:00:00"
},
{
"name": "type",
"value": "R-Residencial"
},
{
"name": "subType",
"value": "New Mobile|New Fixed"
},
{
"name": "identificationNumber",
"value": "2-721-937",
"valueType": "C"
}
],
"contactMedium": [
{
"mediumType": "Address",
"characteristic": {
"street1": "R. Villas de Llano Marin,c21, casa252",
"street2": "LLANO MARIN",
"stateOrProvince": "EL COCO",
"city": "PENONOME",
"country": "COCL"
}
},
{
"mediumType": "email",
"characteristic": {
"emailAddress": "Suzsanne01@gmail.com",
"contactType": "Email"
}
},
{
"mediumType": "Telephone",
"characteristic": {
"phoneNumber": "62791737",
"contactType": "Mobile"
}
}
],
"account": [
{
"id": "329000180000",
"name": "SUZSANN ZEPEDA",
"@type": "BillingAccount"
}
]
}
]
HTTP Status response is 200
Response Sample for JM.
[
{
"id": "22805715",
"name": "MISS SANDRA M OCONNER",
"status": "F-Closed",
"characteristic": [
{
"name": "system",
"value": "Liberate"
},
{
"name": "dateOfBirth",
"value": "1965-08-09T00:00:00"
},
{
"name": "title",
"value": "MISS"
},
{
"name": "type",
"value": "O-Browse & Talk HFONE"
},
{
"name": "subType",
"value": "Existing Fixed|New Mobile"
},
{
"name": "identificationNumber",
"value": "101179057",
"valueType": "TR"
}
],
"contactMedium": [
{
"mediumType": "Address",
"characteristic": {
"street1": "6 MARTELLO DRIVE",
"stateOrProvince": "KINGSTON 17",
"city": "St. Andrew"
}
},
{
"mediumType": "email",
"characteristic": {
"emailAddress": "sandraoconner31@yahoo.com",
"contactType": "Email"
}
}
],
"account": [
{
"id": "228057150000",
"name": "MISS SANDRA M OCONNER",
"@type": "BillingAccount"
}
]
},
{
"id": "402505",
"name": "OCONNER SANDRA",
"status": "STANDARD",
"characteristic": [
{
"name": "system",
"value": "Cerillion"
},
{
"name": "title",
"value": "MISS"
},
{
"name": "type",
"value": "RESIDENTIA"
},
{
"name": "subType",
"value": "Existing Fixed"
},
{
"name": "identificationNumber",
"value": "101179057",
"valueType": "TR"
}
],
"contactMedium": [
{
"mediumType": "Address",
"characteristic": {}
}
],
"account": [
{
"id": "50132325",
"name": "OCONNER SANDRA",
"@type": "BillingAccount"
}
]
}
]
HTTP Status response is 200
PR Market Response.
[
{
"id": "1901502671181",
"name": "JAVIER ALMODOVAR",
"account": [
{
"id": "8211990010042372"
}
],
"contactMedium": [
{
"characteristic": {
"phoneNumber": "7871230014"
}
},
{
"type": "Email",
"medium": {
"emailAddress": "test.xyz@gmail.com"
}
}
]
}
]
Response Model
name | type | required | description |
---|---|---|---|
@type | string | O | When sub-classing, this defines the sub-class entity name |
href | String | O | Url used to reference the customer. |
Id | string | O | Unique identifier for Customers |
Name | string | O | A word, term, or phrase by which the Customer is known and distinguished from other Customers. |
Status | string | O | Used to track the lifecycle status of the customer. |
statusReason | string | O | A string providing an explanation on the value of the status lifecycle. For instance if the status is Rejected, statusReason will provide the reason for rejection. |
validFor | Object | O | A period of time, either as a deadline (endDateTime only) a startDateTime only, or both |
validFor.startDateTime | string(DateTime) | O | Start of the time period, using IETC-RFC-3339 format. If you define a start, you must also define an end |
validFor.endDateTime | string(DateTime) | O | End of the time period, using IETC-RFC-3339 format |
engagedParty[] | Object | O | Related Entity reference. A related party defines party or party role linked to a specific entity. |
engagedParty[].@referredType | string | O | The actual type of the target instance when needed for disambiguation. |
engagedParty[].href | string | O | Reference of the related entity. |
engagedParty[].id | string | O | Unique identifier of a related entity. |
engagedParty[].name | string | O | Name of the related entity. |
relatedparty [] | Object | O | Related Entity reference. A related party defines party or party role linked to a specific entity. |
relatedparty [].@referredType | string | O | The actual type of the target instance when needed for disambiguation. |
relatedparty [].href | string | O | Reference of the related entity. |
relatedparty [].id | string | O | Unique identifier of a related entity. |
relatedparty [].name | string | O | Name of the related entity. |
relatedparty [].role | string | O | role of the related entity. |
Account[] | Object | O | Account reference. A account may be a party account or a financial account. |
Account[].@referredType | String | O | The actual type of the target instance when needed for disambiguation. |
Account[].@type | String | O | Account type |
Account[].description | string | O | Detailed description of the account |
Account[].href | String | O | Reference of the account |
Account[].id | String | O | Unique identifier of the account |
Account[].name | string | O | Name of the account |
paymentMethod[] | Object | O | PaymentMethod reference. A payment method defines a specific mean of payment (e.g direct debit). |
paymentMethod[].@referredType | string | O | The actual type of the target instance when needed for disambiguation. |
paymentMethod[].href | string | O | Reference of the payment mean |
paymentMethod[].id | string | O | Unique identifier of the payment mean |
paymentMethod[].name | string | O | Name of the payment mean |
contactMedium[] | Object | O | Indicates the contact medium that could be used to contact the party. |
contactMedium[].@referredType | string | O | The actual type of the target instance when needed for disambiguation. |
contactMedium[].@schemaLocation | String(URI) | O | A URI to a JSON-Schema file that defines additional attributes and relationships |
contactMedium[].preferred | boolean | O | If true, indicates that is the preferred contact medium |
contactMedium[].mediumType | string | M O for PR | Type of the contact medium, such as: email address, telephone number, postal address |
contactMedium[].validFor | Object | O | A period of time, either as a deadline (endDateTime only) a startDateTime only, or both |
contactMedium[].validFor.startDateTime | String(DateTime) | O | Start of the time period, using IETC-RFC-3339 format. If you define a start, you must also define an end |
contactMedium[].validFor.endDateTime | String(DateTime) | O | End of the time period, using IETC-RFC-3339 format |
contactMedium[].characteristic | Object | M | Describes the contact medium characteristics that could be used to contact a party (an individual or an organization) |
contactMedium[].characteristic.city | string | O | The city |
contactMedium[].characteristic.street1 | string | O | Describes the street |
contactMedium[].characteristic.emailAddress | string | O | Full email address in standard format |
contactMedium[].characteristic.postCode | string | O | postcode |
contactMedium[].characteristic.country | string | O | The country |
contactMedium[].characteristic.stateorprovince | string | O | stateorprovince |
contactMedium[].characteristic.contactType | string | O | The type of contact, for example: phone number such as mobile, fixed home, fixed office. postal address such as shipping instalation… |
Characteristic[] | Object | O | Describes a given characteristic of an object or entity through a name/value pair. |
Characteristic[].name | string | M O for PR | Name of the characteristic |
Characteristic[].value | Any | M O for PR | Value of the characteristic For PA Market and JM for(Liberate) Market Value of the characteristic corresponding possible values are: (New Mobile,New Fixed ),(Existing Fixed,Existing Mobile), (New Fixed,Existing Mobile), (Existing Fixed,New Mobile) For JM for(Cerillion) Market Value of the characteristic corresponding possible values are: Existing Fixed or New Fixed |
Characteristic[].valueType | string | O | Data type of the value of the characteristic |
creditProfile[] | Object | O | Credit profile for the party (containing credit scoring, ...). By default only the current credit profile is retrieved. It can be used as a list to give the party credit profiles history, the first one in the list will be the current one. |
creditProfile[].creditProfileDate | String(DateTime) | O | The date the profile was established |
creditProfile[].creditRiskRating | Integer | O | This is an integer whose value is used to rate the risk |
creditProfile[].creditScore | integer | O | A measure of a person or organizations creditworthiness calculated on the basis of a combination of factors such as their income and credit history |
creditProfile[].validFor | Object | O | A period of time, either as a deadline (endDateTime only) a startDateTime only, or both |
creditProfile[].validFor.startDateTime | String(DateTime) | O | Start of the time period, using IETC-RFC-3339 format. If you define a start, you must also define an end |
creditProfile[].validFor.endDateTime | String(DateTime) | O | End of the time period, using IETC-RFC-3339 format |
Agreement[] | Object | O | Agreement reference. An agreement represents a contract or arrangement, either written or verbal and sometimes enforceable by law, such as a service level agreement or a customer price agreement. An agreement involves a number of other business entities, such as products, services, and resources and/or their specifications. |
Agreement[].@referredType | string | O | The actual type of the target instance when needed for disambiguation. |
Agreement[].href | String | O | Reference of the related entity. |
Agreement[].id | String | O | Unique identifier of a related entity. |
Agreement[].name | string | O | Name of the agreement |